package com.hom3;

public class Test2 {
    public static void main(String[] args) {
        Student student =new Student();
        student.name="小强";
        student.from="来自中国";
        String dn = student.date();
        System.out.println(dn);
    }
}


class Student{
   public String name;
    public String from;

    public String date() {
         String dn = name+from;
         return dn;

    }
}
